package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoAnnouncement;

import java.util.List;

/**
 * 广告Mapper接口
 *
 * @author yangle
 * @date 2024-09-19
 */
public interface DanmoAnnouncementMapper
{
    /**
     * 查询广告
     *
     * @param id 广告主键
     * @return 广告
     */
    public DanmoAnnouncement selectDanmoAnnouncementById(Long id);

    /**
     * 查询广告列表
     *
     * @param danmoAnnouncement 广告
     * @return 广告集合
     */
    public List<DanmoAnnouncement> selectDanmoAnnouncementList(DanmoAnnouncement danmoAnnouncement);

    /**
     * 新增广告
     *
     * @param danmoAnnouncement 广告
     * @return 结果
     */
    public int insertDanmoAnnouncement(DanmoAnnouncement danmoAnnouncement);

    /**
     * 修改广告
     *
     * @param danmoAnnouncement 广告
     * @return 结果
     */
    public int updateDanmoAnnouncement(DanmoAnnouncement danmoAnnouncement);

    /**
     * 删除广告
     *
     * @param id 广告主键
     * @return 结果
     */
    public int deleteDanmoAnnouncementById(Long id);

    /**
     * 批量删除广告
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoAnnouncementByIds(Long[] ids);
}
